You've already forked AstralRinth
* Improve curseforge and local indexing This should make curseforge indexing more efficient, and reuses some of the normal local indexing for the queued indexing of recently created mods. * Unify impls for single and multiple routes for mods and versions This uses the same backend for the single and multiple query routes so that they no longer return inconsistent information. * Cache valid curseforge mod ids to reduce request load This caches the ids of minecraft mods and reuses them on indexing to reduce the amount of unused addons that are returned.
12 lines
287 B
Rust
12 lines
287 B
Rust
use crate::models::error::ApiError;
|
|
use actix_web::{HttpResponse, Responder};
|
|
|
|
pub async fn not_found() -> impl Responder {
|
|
let data = ApiError {
|
|
error: "not_found",
|
|
description: "the requested route does not exist",
|
|
};
|
|
|
|
HttpResponse::NotFound().json(data)
|
|
}
|