MOBILE-4616 url: Move url constants to a file

main
Pau Ferrer Ocaña 2024-07-11 22:43:36 +02:00
parent 65a5659d47
commit c2caa15175
3 changed files with 2 additions and 3 deletions

View File

@ -33,7 +33,6 @@ import { ADDON_MOD_URL_COMPONENT } from '../constants';
export class AddonModUrlProvider {
protected static readonly ROOT_CACHE_KEY = 'mmaModUrl:';
static readonly COMPONENT = ADDON_MOD_URL_COMPONENT;
/**
* Get the final display type for a certain URL. Based on Moodle's url_get_final_display_type.

View File

@ -35,4 +35,4 @@ const routes: Routes = [
AddonModUrlIndexPage,
],
})
export class AddonModUrlLazyModule {}
export default class AddonModUrlLazyModule {}

View File

@ -27,7 +27,7 @@ import { ADDON_MOD_URL_PAGE_NAME } from './constants';
const routes: Routes = [
{
path: ADDON_MOD_URL_PAGE_NAME,
loadChildren: () => import('./url-lazy.module').then(m => m.AddonModUrlLazyModule),
loadChildren: () => import('./url-lazy.module'),
},
];