🔧 Fixed a path issue with the OPDS service

This commit is contained in:
2022-05-09 14:46:03 -07:00
parent f5baba034a
commit 3c08b07d97

View File

@@ -32,7 +32,7 @@ export default class OpdsService extends Service {
hooks: {}, hooks: {},
actions: { actions: {
opds: { opds: {
rest: "POST /opds", rest: "POST /serve",
handler: async (ctx) => { handler: async (ctx) => {
return buildAsync( return buildAsync(
initMain({ initMain({
@@ -63,7 +63,7 @@ export default class OpdsService extends Service {
ext ext
); );
const href = encodeURI( const href = encodeURI(
`/opds/file/${file}` `/comics/${file}`
); );
const type = const type =
lookup(ext) || lookup(ext) ||