Fix crates badge route

pull/282/head
Amio 2019-05-31 14:48:44 +08:00
rodzic d9c56d29f7
commit c90ba89488
1 zmienionych plików z 1 dodań i 7 usunięć

Wyświetl plik

@ -17,7 +17,7 @@ export const meta: Meta = {
}
export const handlers: Handlers = {
'/crates/:topic/:name': handler
'/crates/:topic<v|d|dl>/:pkg': handler
}
export default badgenServe(handlers)
@ -45,11 +45,5 @@ async function handler ({topic, pkg}: Args) {
status: millify(crate.recent_downloads) + ' latest version',
color: 'green'
}
default:
return {
subject: 'crates',
status: 'unknown topic',
color: 'grey'
}
}
}