badgen.net/pages/api/apm.ts

32 wiersze
679 B
TypeScript

2023-06-10 07:27:32 +00:00
import { createBadgenHandler } from '../../libs/create-badgen-handler-next'
2023-02-06 23:08:06 +00:00
const help = `
## Discontinued
Read all about GitHub [Sunsetting Atom](https://github.blog/2022-06-08-sunsetting-atom/).
2023-06-19 07:51:39 +00:00
For alternative service, you may use <a href="/ppm">/ppm</a> instead.
2023-02-06 23:08:06 +00:00
`
2019-05-26 04:40:32 +00:00
export default createBadgenHandler({
2019-05-26 04:40:32 +00:00
title: 'Atom Package',
2023-06-10 07:27:32 +00:00
examples: {
'/apm/v/linter': 'version',
'/apm/stars/linter': 'stars',
'/apm/license/linter': 'license',
'/apm/downloads/linter': 'downloads',
},
handlers: {
'/apm/:topic/:pkg': handler
2023-06-10 07:27:32 +00:00
},
help: help
})
2019-05-26 04:40:32 +00:00
2023-02-06 23:08:06 +00:00
async function handler () {
return {
subject: 'apm',
status: 'discontinued',
color: 'grey'
2019-05-26 04:40:32 +00:00
}
}